home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / phpMyAdmin / libraries / server_links.inc.php < prev    next >
Encoding:
PHP Script  |  2007-12-20  |  2.2 KB  |  98 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: server_links.inc.php 10240 2007-04-01 11:02:46Z cybot_tm $
  6.  */
  7.  
  8. /**
  9.  * Check parameters
  10.  */
  11. require_once './libraries/common.inc.php';
  12. require_once './libraries/server_common.inc.php';
  13.  
  14. PMA_checkParameters(array('is_superuser', 'url_query'), TRUE, FALSE);
  15.  
  16. /**
  17.  * Counts amount of navigation tabs
  18.  */
  19. $server_links_count_tabs = 0;
  20.  
  21.  
  22. /**
  23.  * Put something in $sub_part
  24.  */
  25. if (!isset($sub_part)) {
  26.     $sub_part = '';
  27. }
  28.  
  29.  
  30. /**
  31.  * Displays tab links
  32.  */
  33. $tabs = array();
  34.  
  35. $tabs['databases']['icon'] = 's_db.png';
  36. $tabs['databases']['link'] = 'server_databases.php';
  37. $tabs['databases']['text'] = $strDatabases;
  38.  
  39. $tabs['sql']['icon'] = 'b_sql.png';
  40. $tabs['sql']['link'] = 'server_sql.php';
  41. $tabs['sql']['text'] = $strSQL;
  42.  
  43. $tabs['status']['icon'] = 's_status.png';
  44. $tabs['status']['link'] = 'server_status.php';
  45. $tabs['status']['text'] = $strStatus;
  46.  
  47. $tabs['vars']['icon'] = 's_vars.png';
  48. $tabs['vars']['link'] = 'server_variables.php';
  49. $tabs['vars']['text'] = $strServerTabVariables;
  50.  
  51. if (PMA_MYSQL_INT_VERSION >= 40100) {
  52.     $tabs['charset']['icon'] = 's_asci.png';
  53.     $tabs['charset']['link'] = 'server_collations.php';
  54.     $tabs['charset']['text'] = $strCharsets;
  55. }
  56.  
  57. $tabs['engine']['icon'] = 'b_engine.png';
  58. $tabs['engine']['link'] = 'server_engines.php';
  59. $tabs['engine']['text'] = $strEngines;
  60.  
  61. if ($is_superuser) {
  62.     $tabs['rights']['icon'] = 's_rights.png';
  63.     $tabs['rights']['link'] = 'server_privileges.php';
  64.     $tabs['rights']['text'] = $strPrivileges;
  65. }
  66.  
  67. if (! empty($binary_logs)) {
  68.     $tabs['binlog']['icon'] = 's_tbl.png';
  69.     $tabs['binlog']['link'] = 'server_binlog.php';
  70.     $tabs['binlog']['text'] = $strBinaryLog;
  71. }
  72. $tabs['process']['icon'] = 's_process.png';
  73. $tabs['process']['link'] = 'server_processlist.php';
  74. $tabs['process']['text'] = $strProcesses;
  75.  
  76. $tabs['export']['icon'] = 'b_export.png';
  77. $tabs['export']['link'] = 'server_export.php';
  78. $tabs['export']['text'] = $strExport;
  79.  
  80. $tabs['import']['icon'] = 'b_import.png';
  81. $tabs['import']['link'] = 'server_import.php';
  82. $tabs['import']['text'] = $strImport;
  83.  
  84. echo PMA_getTabs($tabs);
  85. unset($tabs);
  86.  
  87.  
  88. /**
  89.  * Displays a message
  90.  */
  91. if (!empty($message)) {
  92.     PMA_showMessage($message);
  93.     unset($message);
  94. }
  95.  
  96. ?>
  97. <br />
  98.